/* Указываем box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Убираем внутренние отступы */
ul[class],
ol[class] {
  padding: 0;
}

/* Убираем внешние отступы */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

/* Выставляем основные настройки по-умолчанию для body */
body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Удаляем стандартную стилизацию для всех ul и il, у которых есть атрибут class*/
ul[class],
ol[class] {
  list-style: none;
}

/* Элементы a, у которых нет класса, сбрасываем до дефолтных стилей */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Упрощаем работу с изображениями */
img {
  max-width: 100%;
  display: block;
}

/* Указываем понятную периодичность в потоке данных у article*/
article > * + * {
  margin-top: 1em;
}

/* Наследуем шрифты для инпутов и кнопок */
input,
button,
textarea,
select {
  font: inherit;
}

/* Удаляем все анимации и переходы для людей, которые предпочитай их не использовать */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Css Reset */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  font-size: 15px;
  background-color: #121212;
  color: #fff;
}

.container {
  width: 100%;
  max-width: 1200px;
  height: 100vh;

  background-color: #181818;

  margin: 0 auto;
}

.team {
  width: 100%;
  max-width: 800px;

  margin: 0 auto;
}

.center {
  padding-top: 200px;
}

.team__cards {
  /* padding-top: 200px; */
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 400px;
  column-gap: 40px;
}

.team__item {
  background-color: #222;
  transition: all 0.2s linear;
}

.team__item::before {
  content: "";
  display: block;
  background-color: #fff;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 100%;
}

.team__item:hover {
  transform: translate3d(-7px, -7px, 0);
}

.item__photo {
  object-fit: cover;
}

.item__content {
  padding: 20px;
}

.item__content span {
  font-weight: 300;
}

.team_description {
  width: 500px;
  margin: 0 auto 20px;

  font-size: 20px;
  text-transform: uppercase;
  text-align: center;
}

.item__description {
  margin-top: 10px;
  padding-top: 10px;

  border-top: 1px #121212 solid;
}
